﻿<common:LayoutAwarePage
    x:Name="pageRoot"
    x:Class="FinanceAdviser.ItemDetailPage"
    DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:FinanceAdviser"
    xmlns:common="using:FinanceAdviser.Common"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">


	 <Page.TopAppBar>
        <AppBar x:Name="TopApp" Padding="10,0,10,0" MinHeight="110" Background="#F9161616" BorderBrush="#F9161616">
            <Grid Height="100" Margin="10,0,0,0">
                <StackPanel Margin="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                    <Button x:Name="btnHome" Tag="Home" HorizontalAlignment="Right" BorderBrush="{x:Null}" BorderThickness="0" FontWeight="Normal" VerticalAlignment="Center" Padding="0" Style="{StaticResource TopAppbarBtnStyle}" Click="btnHome_Click"  >
                        <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Height="93" Margin="0" Width="93" Background="#19259511">
                            <Image Source="Assets/AppBar/TopAppBar1.png" Margin="0"/>
                        </Grid>
                    </Button>
                    <Button x:Name="btnPortfolio" Tag="Portfolio" HorizontalAlignment="Right" BorderBrush="{x:Null}" BorderThickness="0" FontWeight="Normal" VerticalAlignment="Center" Padding="0" Style="{StaticResource TopAppbarBtnStyle}" Margin="10,0,0,0"  >
                    	<Grid HorizontalAlignment="Center" VerticalAlignment="Center" Height="93" Margin="0" Width="93" Background="#19259511">
                    		<Image Source="Assets/AppBar/TopAppBar2.png" Margin="0"/>
                    	</Grid>
                    </Button>
                    <Button x:Name="btnMyGoals" Tag="My Goals" HorizontalAlignment="Right" BorderBrush="{x:Null}" BorderThickness="0" FontWeight="Normal" VerticalAlignment="Center" Padding="0" Style="{StaticResource TopAppbarBtnStyle}" Margin="10,0,0,0"  >
                    	<Grid HorizontalAlignment="Center" VerticalAlignment="Center" Height="93" Margin="0" Width="93" Background="#19259511">
                    		<Image Source="Assets/AppBar/TopAppBar3.png" Margin="0"/>
                    	</Grid>
                    </Button>
                    <Button x:Name="btnEquityTracker" Tag="Equity tracker" HorizontalAlignment="Right" BorderBrush="{x:Null}" BorderThickness="0" FontWeight="Normal" VerticalAlignment="Center" Padding="0" Style="{StaticResource TopAppbarBtnStyle}" Margin="10,0,0,0"  >
                    	<Grid HorizontalAlignment="Center" VerticalAlignment="Center" Height="93" Margin="0" Width="93" Background="#19259511">
                    		<Image Source="Assets/AppBar/TopAppBar4.png" Margin="0"/>
                    	</Grid>
                    </Button>
                    <Button x:Name="btnLoanCalculator" Tag="Loan Calculator" HorizontalAlignment="Right" BorderBrush="{x:Null}" BorderThickness="0" FontWeight="Normal" VerticalAlignment="Center" Padding="0" Style="{StaticResource TopAppbarBtnStyle}" Margin="10,0,0,0"  >
                    	<Grid HorizontalAlignment="Center" VerticalAlignment="Center" Height="93" Margin="0" Width="93" Background="#19259511">
                    		<Image Source="Assets/AppBar/TopAppBar5.png" Margin="0"/>
                    	</Grid>
                    </Button>
                    <Button x:Name="btnMyAccounts" Tag="MyAccounts" HorizontalAlignment="Right" BorderBrush="{x:Null}" BorderThickness="0" FontWeight="Normal" VerticalAlignment="Center" Padding="0" Style="{StaticResource TopAppbarBtnStyle}" Margin="10,0,0,0"  >
                    	<Grid HorizontalAlignment="Center" VerticalAlignment="Center" Height="93" Margin="0" Width="93" Background="#19259511">
                    		<Image Source="Assets/AppBar/TopAppBar6.png" Margin="0"/>
                    	</Grid>
                    </Button>
                    <Button x:Name="btnFixedDeposits" Tag="Fixed Deposits" HorizontalAlignment="Right" BorderBrush="{x:Null}" BorderThickness="0" FontWeight="Normal" VerticalAlignment="Center" Padding="0" Style="{StaticResource TopAppbarBtnStyle}" Margin="10,0,0,0"  >
                    	<Grid HorizontalAlignment="Center" VerticalAlignment="Center" Height="93" Margin="0" Width="93" Background="#19259511">
                    		<Image Source="Assets/AppBar/TopAppBar7.png" Margin="0"/>
                    	</Grid>
                    </Button>
                </StackPanel>
            </Grid>
        </AppBar>
    </Page.TopAppBar>

    <Page.Resources>

        <!-- TODO: Delete this line if the key AppName is declared in App.xaml -->
        <x:String x:Key="AppName">My Application</x:String>
    </Page.Resources>

    <!--
        This grid acts as a root panel for the page that defines two rows:
        * Row 0 contains the back button and page title
        * Row 1 contains the rest of the page layout
    -->
    <Grid Style="{StaticResource LayoutRootStyle}">

	 <Grid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FF0A2C4E"/>
                <GradientStop Color="#FF191919" Offset="1"/>
            </LinearGradientBrush>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="140"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!-- Back button and page title -->
        <ScrollViewer x:Name="scrollViewer" Style="{StaticResource HorizontalScrollViewerStyle}" Grid.Row="1">
        	<Grid x:Name="grid" Margin="120,0,0,0">
        		<Grid.ColumnDefinitions>
        			<ColumnDefinition Width="250"/>
        			<ColumnDefinition Width="25"/>
        			<ColumnDefinition Width="530"/>
        			<ColumnDefinition Width="25"/>
        			<ColumnDefinition Width="315"/>
        			<ColumnDefinition Width="60"/>
					<ColumnDefinition Width="*"/>
        		</Grid.ColumnDefinitions>
        		<Grid.RowDefinitions>
        			<RowDefinition Height="40"/>
        			<RowDefinition Height="20"/>
        			<RowDefinition Height="*"/>
        		</Grid.RowDefinitions>
        		<TextBlock Text="Lorem Ipsum" Style="{StaticResource GroupHeaderTextStyle}" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0" FontSize="32" />
        		<StackPanel Margin="0" Orientation="Vertical" Grid.Row="2">
        			<Grid HorizontalAlignment="Left"  VerticalAlignment="Top" Width="250" Height="112" Background="White" Margin="0">
        				<Grid.ColumnDefinitions>
        					<ColumnDefinition Width="50"/>
        					<ColumnDefinition Width="*"/>
        				</Grid.ColumnDefinitions>
        				<Grid Background="#FF029C15">
        					<Path Data="M16.4704,-0.407686 L16.4704,-0.092062 L32.3156,24.9152 L0.625164,25.0001 z" Fill="White" Stretch="Fill" Margin="10,0,10,10" UseLayoutRounding="False" VerticalAlignment="Bottom" Height="20.125"/>
        				</Grid>
        				<StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
        					<TextBlock TextWrapping="Wrap" Text="674.95" Foreground="#FF333333" FontSize="40" FontFamily="Segoe UI Light" FontWeight="Light"/>
        					<Grid>
        						<TextBlock TextWrapping="Wrap" Text="+2.15" Foreground="#FF333333" FontSize="16" FontFamily="Segoe UI Semibold" FontWeight="Bold" HorizontalAlignment="Left" VerticalAlignment="Center"/>
        						<TextBlock TextWrapping="Wrap" Text="+0.15%" Foreground="#FF333333" FontSize="16" FontFamily="Segoe UI Semibold" FontWeight="Bold" HorizontalAlignment="Right" VerticalAlignment="Center"/>
        					</Grid>
        				</StackPanel>
        			</Grid>
        			<StackPanel  Height="352" VerticalAlignment="Top" Background="#0FD8D8D8">
        				<TextBlock TextWrapping="Wrap" Text="MBP" HorizontalAlignment="Left" Margin="15" Foreground="White" FontSize="26.667" FontFamily="Segoe UI Light" FontWeight="Light"/>
        				<Grid Margin="15,5">
        					<Grid.ColumnDefinitions>
        						<ColumnDefinition Width=".7*"/>
        						<ColumnDefinition Width=".3*"/>
        					</Grid.ColumnDefinitions>
        					<TextBlock TextWrapping="Wrap" Text="Total Qty" HorizontalAlignment="Left" Foreground="#FF888888" FontFamily="Segoe UI" FontSize="14.667"/>
        					<TextBlock TextWrapping="Wrap" Text="0" Foreground="#FF888888" FontFamily="Segoe UI" FontSize="14.667" HorizontalAlignment="Left" Grid.Column="1"/>
        				</Grid>
        				<Grid Margin="15,5">
        					<Grid.ColumnDefinitions>
        						<ColumnDefinition Width=".7*"/>
        						<ColumnDefinition Width=".3*"/>
        					</Grid.ColumnDefinitions>
        					<TextBlock TextWrapping="Wrap" Text="Open Price" HorizontalAlignment="Left" Foreground="#FF888888" FontFamily="Segoe UI" FontSize="14.667"/>
        					<TextBlock TextWrapping="Wrap" Text="000.00" Foreground="#FF888888" FontFamily="Segoe UI" FontSize="14.667" HorizontalAlignment="Left" Grid.Column="1"/>
        				</Grid>
        				<Grid Margin="15,5">
        					<Grid.ColumnDefinitions>
        						<ColumnDefinition Width=".7*"/>
        						<ColumnDefinition Width=".3*"/>
        					</Grid.ColumnDefinitions>
        					<TextBlock TextWrapping="Wrap" Text="Close" HorizontalAlignment="Left" Foreground="#FF888888" FontFamily="Segoe UI" FontSize="14.667"/>
        					<TextBlock TextWrapping="Wrap" Text="000.00" Foreground="#FF888888" FontFamily="Segoe UI" FontSize="14.667" HorizontalAlignment="Left" Grid.Column="1"/>
        				</Grid>
        				<Grid Margin="15,5">
        					<Grid.ColumnDefinitions>
        						<ColumnDefinition Width=".7*"/>
        						<ColumnDefinition Width=".3*"/>
        					</Grid.ColumnDefinitions>
        					<TextBlock TextWrapping="Wrap" Text="Day H/L" HorizontalAlignment="Left" Foreground="#FF888888" FontFamily="Segoe UI" FontSize="14.667"/>
        					<TextBlock TextWrapping="Wrap" Text="000-000" Foreground="#FF888888" FontFamily="Segoe UI" FontSize="14.667" HorizontalAlignment="Left" Grid.Column="1"/>
        				</Grid>
        				<Grid Margin="15,5">
        					<Grid.ColumnDefinitions>
        						<ColumnDefinition Width=".7*"/>
        						<ColumnDefinition Width=".3*"/>
        					</Grid.ColumnDefinitions>
        					<TextBlock TextWrapping="Wrap" Text="52 Week H/L" HorizontalAlignment="Left" Foreground="#FF888888" FontFamily="Segoe UI" FontSize="14.667"/>
        					<TextBlock TextWrapping="Wrap" Text="000-0000" Foreground="#FF888888" FontFamily="Segoe UI" FontSize="14.667" HorizontalAlignment="Left" Grid.Column="1"/>
        				</Grid>
        				<Grid Margin="15,5">
        					<Grid.ColumnDefinitions>
        						<ColumnDefinition Width=".7*"/>
        						<ColumnDefinition Width=".3*"/>
        					</Grid.ColumnDefinitions>
        					<TextBlock TextWrapping="Wrap" Text="Ceil/Floor" HorizontalAlignment="Left" Foreground="#FF888888" FontFamily="Segoe UI" FontSize="14.667"/>
        					<TextBlock TextWrapping="Wrap" Text="000-0000" Foreground="#FF888888" FontFamily="Segoe UI" FontSize="14.667" HorizontalAlignment="Left" Grid.Column="1"/>
        				</Grid>
        			</StackPanel>
        		</StackPanel>
        		<Grid Grid.Row="2" Grid.Column="2" Background="White" Height="465" VerticalAlignment="Top">
        			<Grid.RowDefinitions>
        				<RowDefinition Height="75"/>
        				<RowDefinition Height="*"/>
        			</Grid.RowDefinitions>
        			<TextBlock Text="Lorem Ipsum" Style="{StaticResource GroupHeaderTextStyle}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="80,0,0,0" FontSize="24" Foreground="#FF029C15" FontWeight="Normal" />
        			<Image HorizontalAlignment="Center" VerticalAlignment="Top" Grid.Row="1" Source="Assets/ItemDetailpage/ItemDetailChart.png" Width="437"/>
        		</Grid>
        		<StackPanel Grid.Column="4" Margin="0" Grid.Row="2" Height="465" VerticalAlignment="Top" Background="#0FFFFFFF">
        			<Grid Margin="15,45,15,5">
        				<Grid.ColumnDefinitions>
        					<ColumnDefinition Width=".5*"/>
        					<ColumnDefinition Width=".5*"/>
        				</Grid.ColumnDefinitions>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum Dolor Sit" HorizontalAlignment="Left" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333"/>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum Dolor" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333" HorizontalAlignment="Left" Grid.Column="1" FontWeight="SemiBold"/>
        			</Grid>
        			<Grid Margin="15,5">
        				<Grid.ColumnDefinitions>
        					<ColumnDefinition Width=".5*"/>
        					<ColumnDefinition Width=".5*"/>
        				</Grid.ColumnDefinitions>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum Dolor " HorizontalAlignment="Left" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333"/>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333" HorizontalAlignment="Left" Grid.Column="1" FontWeight="SemiBold"/>
        			</Grid>
        			<Grid Margin="15,5">
        				<Grid.ColumnDefinitions>
        					<ColumnDefinition Width=".5*"/>
        					<ColumnDefinition Width=".5*"/>
        				</Grid.ColumnDefinitions>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum Dolor " HorizontalAlignment="Left" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333"/>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333" HorizontalAlignment="Left" Grid.Column="1" FontWeight="SemiBold"/>
        			</Grid>
        			<Grid Margin="15,5">
        				<Grid.ColumnDefinitions>
        					<ColumnDefinition Width=".5*"/>
        					<ColumnDefinition Width=".5*"/>
        				</Grid.ColumnDefinitions>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum Dolor Sit" HorizontalAlignment="Left" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333"/>
        				<TextBlock TextWrapping="Wrap" Text="Lorem" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333" HorizontalAlignment="Left" Grid.Column="1" FontWeight="SemiBold"/>
        			</Grid>
        			<Grid Margin="15,5">
        				<Grid.ColumnDefinitions>
        					<ColumnDefinition Width=".5*"/>
        					<ColumnDefinition Width=".5*"/>
        				</Grid.ColumnDefinitions>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum Dolor " HorizontalAlignment="Left" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333"/>
        				<TextBlock TextWrapping="Wrap" Text="Lorem" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333" HorizontalAlignment="Left" Grid.Column="1" FontWeight="SemiBold"/>
        			</Grid>
        			<Grid Margin="15,5">
        				<Grid.ColumnDefinitions>
        					<ColumnDefinition Width=".5*"/>
        					<ColumnDefinition Width=".5*"/>
        				</Grid.ColumnDefinitions>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum Dolor " HorizontalAlignment="Left" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333"/>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum Dolor" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333" HorizontalAlignment="Left" Grid.Column="1" FontWeight="SemiBold"/>
        			</Grid>
        			<Grid Margin="15,5">
        				<Grid.ColumnDefinitions>
        					<ColumnDefinition Width=".5*"/>
        					<ColumnDefinition Width=".5*"/>
        				</Grid.ColumnDefinitions>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum Dolor " HorizontalAlignment="Left" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333"/>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum Dolor" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333" HorizontalAlignment="Left" Grid.Column="1" FontWeight="SemiBold"/>
        			</Grid>
        			<Grid Margin="15,5">
        				<Grid.ColumnDefinitions>
        					<ColumnDefinition Width=".5*"/>
        					<ColumnDefinition Width=".5*"/>
        				</Grid.ColumnDefinitions>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum Dolor Sit" HorizontalAlignment="Left" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333"/>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum Dolor" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333" HorizontalAlignment="Left" Grid.Column="1" FontWeight="SemiBold"/>
        			</Grid>
        			<Grid Margin="15,5">
        				<Grid.ColumnDefinitions>
        					<ColumnDefinition Width=".5*"/>
        					<ColumnDefinition Width=".5*"/>
        				</Grid.ColumnDefinitions>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum Dolor " HorizontalAlignment="Left" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333"/>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333" HorizontalAlignment="Left" Grid.Column="1" FontWeight="SemiBold"/>
        			</Grid>
        			<Grid Margin="15,5">
        				<Grid.ColumnDefinitions>
        					<ColumnDefinition Width=".5*"/>
        					<ColumnDefinition Width=".5*"/>
        				</Grid.ColumnDefinitions>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum Dolor " HorizontalAlignment="Left" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333"/>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333" HorizontalAlignment="Left" Grid.Column="1" FontWeight="SemiBold"/>
        			</Grid>
        			<Grid Margin="15,5">
        				<Grid.ColumnDefinitions>
        					<ColumnDefinition Width=".5*"/>
        					<ColumnDefinition Width=".5*"/>
        				</Grid.ColumnDefinitions>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum Dolor Sit" HorizontalAlignment="Left" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333"/>
        				<TextBlock TextWrapping="Wrap" Text="Lorem" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333" HorizontalAlignment="Left" Grid.Column="1" FontWeight="SemiBold"/>
        			</Grid>
        			<Grid Margin="15,5">
        				<Grid.ColumnDefinitions>
        					<ColumnDefinition Width=".5*"/>
        					<ColumnDefinition Width=".5*"/>
        				</Grid.ColumnDefinitions>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum Dolor " HorizontalAlignment="Left" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333"/>
        				<TextBlock TextWrapping="Wrap" Text="Lorem" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333" HorizontalAlignment="Left" Grid.Column="1" FontWeight="SemiBold"/>
        			</Grid>
        			<Grid Margin="15,5">
        				<Grid.ColumnDefinitions>
        					<ColumnDefinition Width=".5*"/>
        					<ColumnDefinition Width=".5*"/>
        				</Grid.ColumnDefinitions>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum Dolor " HorizontalAlignment="Left" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333"/>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum Dolor" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333" HorizontalAlignment="Left" Grid.Column="1" FontWeight="SemiBold"/>
        			</Grid>
        			<Grid Margin="15,5">
        				<Grid.ColumnDefinitions>
        					<ColumnDefinition Width=".5*"/>
        					<ColumnDefinition Width=".5*"/>
        				</Grid.ColumnDefinitions>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum Dolor " HorizontalAlignment="Left" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333"/>
        				<TextBlock TextWrapping="Wrap" Text="Lorem Ipsum Dolor" Foreground="#FFBDBDBD" FontFamily="Segoe UI" FontSize="13.333" HorizontalAlignment="Left" Grid.Column="1" FontWeight="SemiBold"/>
        			</Grid>
        		</StackPanel>
        		<TextBlock Text="Security Info" Style="{StaticResource GroupHeaderTextStyle}" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0" FontSize="32" Grid.Column="4" />
        	</Grid>
        </ScrollViewer>
		<Grid x:Name="grdSnapView"  Grid.RowSpan="2" Visibility="Collapsed">
		<Grid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FF0A2C4E"/>
                <GradientStop Color="#FF191919" Offset="1"/>
            </LinearGradientBrush>
        </Grid.Background>
        	<TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" Text="&quot;Please switch to full screen to view the details.&quot;" VerticalAlignment="Center" AllowDrop="True" FontSize="21.333" FontFamily="Segoe UI"/>
        </Grid>
		<Grid>
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="Auto"/>
				<ColumnDefinition Width="*"/>
			</Grid.ColumnDefinitions>
			<Button x:Name="backButton" Click="GoBack" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Style="{StaticResource BackButtonStyle}"/>
			<TextBlock x:Name="pageTitle" Grid.Column="1" Style="{StaticResource PageHeaderTextStyle}" Text="NSE"/>
			<Image x:Name="image" HorizontalAlignment="Right" Width="212" Source="Assets/Logo.png" Margin="0,0,40,0" Grid.Column="1" VerticalAlignment="Center"/>
		</Grid>
        <VisualStateManager.VisualStateGroups>

            <!-- Visual states reflect the application's view state -->
            <VisualStateGroup x:Name="ApplicationViewStates">
                <VisualState x:Name="FullScreenLandscape"/>
                <VisualState x:Name="Filled"/>

                <!-- The entire page respects the narrower 100-pixel margin convention for portrait -->
                <VisualState x:Name="FullScreenPortrait">
                    <Storyboard>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PortraitBackButtonStyle}"/>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" Storyboard.TargetName="grid">
                        	<DiscreteObjectKeyFrame KeyTime="0">
                        		<DiscreteObjectKeyFrame.Value>
                        			<Thickness>103,0,0,0</Thickness>
                        		</DiscreteObjectKeyFrame.Value>
                        	</DiscreteObjectKeyFrame>
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>

                <!-- The back button and title have different styles when snapped -->
                <VisualState x:Name="Snapped">
                    <Storyboard>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedBackButtonStyle}"/>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="pageTitle" Storyboard.TargetProperty="Style">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedPageHeaderTextStyle}"/>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="grdSnapView">
                        	<DiscreteObjectKeyFrame KeyTime="0">
                        		<DiscreteObjectKeyFrame.Value>
                        			<Visibility>Visible</Visibility>
                        		</DiscreteObjectKeyFrame.Value>
                        	</DiscreteObjectKeyFrame>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image">
                        	<DiscreteObjectKeyFrame KeyTime="0">
                        		<DiscreteObjectKeyFrame.Value>
                        			<Visibility>Collapsed</Visibility>
                        		</DiscreteObjectKeyFrame.Value>
                        	</DiscreteObjectKeyFrame>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="scrollViewer">
                        	<DiscreteObjectKeyFrame KeyTime="0">
                        		<DiscreteObjectKeyFrame.Value>
                        			<Visibility>Collapsed</Visibility>
                        		</DiscreteObjectKeyFrame.Value>
                        	</DiscreteObjectKeyFrame>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="TopApp">
                        	<DiscreteObjectKeyFrame KeyTime="0">
                        		<DiscreteObjectKeyFrame.Value>
                        			<Visibility>Collapsed</Visibility>
                        		</DiscreteObjectKeyFrame.Value>
                        	</DiscreteObjectKeyFrame>
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
    </Grid>
</common:LayoutAwarePage>
